body, html {
    font-family: Helvetica, Arial, sans-serif;
    height: 100%;
    font-size: 15px;
    overflow-x: auto;
}

p {
    margin: 1em 0;
    line-height: 1.5;
}

sub {
    vertical-align: sub;
    font-size: 0.866em;
}

#job-input {
    margin: 2.5em 0;
}

.tab {
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, rgba(255,255,255,0.1)), color-stop(0.5, rgba(255,255,255,0.1)), color-stop(0.5, transparent));
    background-image: -moz-linear-gradient(top, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 50%, transparent 50%, transparent 100%);
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    -webkit-box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    text-shadow: 1px -1px 1px rgba(0,0,0,0.75);
    padding: 0.5em 1.5em;
    margin: 3px 0.5em;
}

.tab:last-child, .last-child {
    margin-right: 0;
}

.tab:first-child {
    margin-left: 0
}

.tab a {
    text-align: center;
}

.tab:active {
    top: 1px;
}

.tab a {
    text-decoration: none;
}

.tab a:after {
    content: " »";
}

.job-input-method {
    background-color: #BB0000;
    display: inline-block;
}

.job-input-method:hover {
    background-color: #AA0000;
}

.job-input-method a {
    color: white;
    font-size: 1.5em;
}

.selected-job-input-method {
    background-color: black;
}

.selected-job-input-method:hover {
    background-color: #111;
}

#wrapper {
    min-height: 100%;
    position: relative;
}

#content {
    padding-bottom: 5.5em;
    margin-left: 80px;
    max-width: 960px;
}

#header {
    -moz-box-shadow: 1px 1px 2px rgba(0,0,0,.5);
    -webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.5);
    background-color: black;
    border-bottom: thick #BB0000 solid;
    height: 3em;
    position: relative;
    width: 100%;
}

#footer {
    background-color: #EFEFEF;
    border-top: thick #CBCBCB solid;
    bottom: 0;
    left: 0;
    height: 3em;
    position: absolute;
    width: 100%;
}

a:hover {
    text-decoration: underline;
}

#introduction ul, #help-index ul {
    margin-left: 2em;
}

#introduction li {
    list-style: disc;
    margin: 1em 0;
}

#help-index ul li a {
    color: black;
}

#help-index li {
    list-style: disc;
    margin: 0.5em 0;
}

h1 {
    color: #BB0000;
    font-family: Trebuchet MS, Arial, sans-serif;
    font-size: 1.5em;
    font-weight: normal;
    margin: 1em 0;
    padding-bottom: 0.25em;
    border-bottom: 1px solid #AAA;
}

h2 {
    font-size: 1.25em;
    margin: 1em 0;
    padding-bottom: 0.25em;
    border-bottom: 1px solid #AAA;
}

h3 {
    font-size: 1.125em;
    margin: 1em 0;
}

h4 {
    margin: 1em 0;
}

#help {
    counter-reset: section;
}

#help h3:before {
    content: counter(section) ". ";
    counter-increment: section;
}

input {
    font-size: 1em;
    padding: 0.25em;
}

input[type=submit] {
    margin-left: 0;
}

#userinfo {
    bottom: 0;
    position: absolute;
    right: 0.5em;
    font-size: 0.866em;
}

#persistent-navigation {
    bottom: 0.25em;
    position: absolute;
    left: 80px;
    font-size: 1.25em;
}

#userinfo li, #persistent-navigation li {
    -moz-border-radius-topleft: 4px;
    -moz-border-radius-topright: 4px;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    color: white;
    display: inline;
    margin-right: 0.25em;
    padding: 0.25em 0.5em 0.25em 0.5em;
}

#persistent-navigation li:hover, #persistent-navigation li.active:hover {
    background-color: #AA0000;
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, rgba(255,255,255,0.1)), color-stop(0.5, rgba(255,255,255,0.1)), color-stop(0.5, transparent));
    background-image: -moz-linear-gradient(top, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 50%, transparent 50%, transparent 100%);
}

#persistent-navigation li a {
    text-decoration: none;
    text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
}

#persistent-navigation li a:hover {
    text-decoration: underline;
}

#userinfo li, #persistent-navigation li.active {
    background-color: #BB0000;
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, rgba(255,255,255,0.1)), color-stop(0.5, rgba(255,255,255,0.1)), color-stop(0.5, transparent));
    background-image: -moz-linear-gradient(top, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 50%, transparent 50%, transparent 100%);
}

#userinfo li a, #persistent-navigation li a {
    color: white;
}

#kegg-search {
    margin: 2.5em 0;
}

#kegg-search input {
    background-image: url(../images/search.png);
    background-position: left 0.25em;
    background-repeat: no-repeat;
    font-size: 1.5em;
    font-weight: normal;
    padding: 0.125em 0.125em 0.125em 26px;
    width: 47.5%;
}

input[type=text], input[type=password], textarea {
    border-bottom: thin #999 solid;
    border-left: thin #CCC solid;
    border-right: thin #999 solid;
    border-top: thin #CCC solid;
    font-size: 1em;
    width: 32%;
}

form ol {
    list-style: none;
}

form li {
    clear: both;
    overflow: hidden;
    margin: 1em 0;
}

form li label, form li legend, form li input {
    float: left;
}

form li label {
    padding-top: 0.4em;
}

form fieldset fieldset legend, form li label:first-child {
    width: 18%;
    padding-top: 0.4em;
}

fieldset#additional-parameters {
    clear: both;
    position: relative;
}

fieldset#additional-parameters > legend {
    color: #BB0000;
    font-family: Trebuchet MS, Arial, sans-serif;
    font-size: 1.5em;
    font-weight: normal;
    margin-bottom: 1em;
    margin: 0 0 0.66em 0;
}

#job_ms_file {
    padding: 0;
    position: absolute;
    right: 0;
    top: 2.5em;
    width: 25%;
}

#additional-parameters li:last-child label {
    color: #BB0000;
    font-family: Trebuchet MS, Arial, sans-serif;
    font-size: 1.5em;
    font-weight: normal;
    margin: 0 0 0.66em 0;
    position: absolute;
    right: 0;
    top: -0.5em;
    width: 25%;
}

li#description {
    margin-top: 2em;
}

form fieldset fieldset {
    border: none;
}

input[type=radio], input[type=checkbox] {
    margin: 0.4em 0.4em 0 0.4em;
}

form li fieldset legend+input[type=radio] {
    margin-left: 0;
}

label+input[type=radio], input+input {
    margin-left: 1em;
}

#footer p {
    color: #888;
    font-size: 0.866em;
    margin-left: 80px;
    margin-top: 1.25em;
}

.spectrum-thumb {
    float: right;
}

#fragment-selection legend {
    color: #BB0000;
    font-family: Trebuchet MS, Arial, sans-serif;
    font-size: 1.25em;
    font-weight: normal;
    padding: 0.66em 0;
    float: none;
}

.fragment-list, #delayed-jobs {
    font-size: 0.866em;
    width: 100%;
}

.fragment-list thead tr .header {
    background-repeat: no-repeat;
    background-position: center right;
    padding-right: 15px;
    background-image: url('../images/ascdesc.gif'), -webkit-gradient(linear, left top, left bottom, color-stop(0.0, rgba(255,255,255,1.0)), color-stop(1.0, rgba(255,255,255,0.0)));
    background-image: url('../images/ascdesc.gif'), -moz-linear-gradient(top, rgba(255,255,255,1.0) 0%, rgba(255,255,255,0.0) 100%);

}

.fragment-list thead tr .headerSortUp {
    background-image: url('../images/asc.gif'), -webkit-gradient(linear, left top, left bottom, color-stop(0.0, rgba(255,255,255,1.0)), color-stop(1.0, rgba(255,255,255,0.0)));
    background-image: url('../images/ascdesc.gif'), -moz-linear-gradient(top, rgba(255,255,255,1.0) 0%, rgba(255,255,255,0.0) 100%);

}

.fragment-list thead tr .headerSortDown {
    background-image: url('../images/desc.gif'), -webkit-gradient(linear, left top, left bottom, color-stop(0.0, rgba(255,255,255,1.0)), color-stop(1.0, rgba(255,255,255,0.0)));
    background-image: url('../images/ascdesc.gif'), -moz-linear-gradient(top, rgba(255,255,255,1.0) 0%, rgba(255,255,255,0.0) 100%);

}

.fragment-list thead tr .headerSortDown, .fragment-list thead tr .headerSortUp {
    background-color: #CCC;
}

.fragment-list a:link, .fragment-list a:visited, .fragment-list a:active, .fragment-list a:hover {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.fragment-list td, .fragment-list th, #delayed-jobs td, #delayed-jobs th {
    border: 1px solid #CBCBCB;
    padding: 0.5em;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #CBCBCB;
    line-height: 1.25;
}

.fragment-list th, #delayed-jobs th {
    background-color: #DDD;
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, rgba(255,255,255,1.0)), color-stop(1.0, rgba(255,255,255,0.0)));
    background-image: -moz-linear-gradient(top, rgba(255,255,255,1.0) 0%, rgba(255,255,255,0.0) 100%);
}

.fragment-list td, th {
    border-top: none;
}

.fragment-list .isomorphic td, th {
    border-bottom: none;
}

.more-fragments {
    color: black;
}

#peak-navi {
    text-align: center;
}

#peak-navi li {
    background-color: #C00000;
    display: inline-block;
}

#peak-navi li:hover {
    background-color: #B00000;
}

#peak-navi li.ui-tabs-selected {
    background-color: black;
}

#peak-navi li.ui-tabs-selected:hover {
    background-color: #111;
}

#peak-navi li a {
    color: white;
    font-weight: bold;
}

#peak-navi li a:hover {
    text-decoration: underline;
}

#spectrum {
    margin: 2em 0;
}

#job-parameters {
    margin: 1em 0;
    overflow: hidden;
}

#job-parameters dt {
    float: left;
}

#job-parameters dd {
    margin-left: 22.5%;
    display: block;
}

#job-parameters dt, #job-parameters dd {
    margin-bottom: 0.5em;
}

#job-parameters:after { /* Float clear hack */
    clear: both;
    content: ".";
    visibility: hidden;
}

#jobs {
    margin: 1em 0;
}

.job {
    padding: 1.5em 0;
    min-height: 150px;
    border-bottom: 1px dashed #AAA;
    position: relative;
}

#calculating {
    background-image: url("../images/spinner.gif");
    background-repeat: no-repeat;
}

#calculating h1 {
    color: black;
    font-size: 2em;
    padding-left: 48px;
}

#give-email label {
    width: auto;
    margin-right: 2em;
}

.ui-tabs-hide {
    display: none;
}

.ui-autocomplete {
    background-color: white;
    border-bottom: 1px #999 solid;
    border-left: 1px #999 solid;
    border-right: 1px #999 solid;
    max-width: 484px;
}

.ui-autocomplete li a {
    padding: 0.25em;
    display: block;
    text-decoration: none;
}

.ui-state-hover {
    background-color: #E0ECFF;
}

#molecule-image {
    width: 80%;
}

.tooltip {
    padding: 0px 10px 10px 10px;
}

.no-fragment-candidates, .no-fragments-selected {
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: underline;
}

.fragment-thumb {
    width: 225px;
    height: 150px;
}

.zoomed-image {
    background: white;
    border: 4px solid #AAA;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
}

#molecule-search {
    position: relative;
    margin: 2.5em 0;
}

.molecule {
    margin: 2.5em 0;
    width: 50%;
}

.molecule-thumb {
    position: absolute;
    top: -16px;
    right: 0;
    width: 45%;
    height: 175px;
}

.molecule-info dt {
    float: left;
}

.molecule-info dd {
    display: block;
    margin-left: 20%;
}

.molecule-info dd, .molecule-info dt {
    line-height: 1.5;
}

.notification, #noscript-warning {
    text-align: center;
    font-family: Trebuchet MS, sans-serif;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.25em 0;
}

#error {
    background: #F0A8A8;
    border-bottom: 3px solid #BB0000;
    color: #900;
}

#notice, #noscript-warning {
    background-color: #FBF7AA;
    border-bottom: 3px solid #F9E98E;;
    border-top: 3px solid #F9E98E;;
    color: #AB7D35;
}

#linenumber {
    position: absolute;
    width: 25%;
    top: 13.5em;
    right: 0;
}

div.errorExplanation {
    border: 1px solid black;
    margin: 1.5em 0;
}

div.errorExplanation * {
    margin: 1em;
}

div.errorExplanation h2 {
    color: white;
    background-color: #BB0000;
    margin: 0;
    padding: 0.5em;
}

div.errorExplanation ul {
    list-style: disc inside none;
}

div.errorExplanation > ul > li {
    overflow: hidden;
    padding: 0 2px;
}

.job-info {
    margin: 1em 0;
}

.job-info dd {
    display: block;
    margin-left: 12.5%;
    width: 35%;
}

.job-info dt {
    float: left;
}

.job-info dd, .job-info dt {
    margin-bottom: 0.5em;
}

.job-controls {
    position: absolute;
    bottom: 1.5em;
    left: 0;
}

.job-controls ul {
    list-style: none;
}

.job-controls li {
    display: inline;
}

.job-controls li+li:before {
    content: "| "
}

.job-controls a {
    color: black;
}

#save-mol-file {
    margin: 1.5em 0;
}
